package utiles.exceptions;

public class DataException extends Exception {

    /**
	 * 
	 */
	private static final long serialVersionUID = 6580217537822257099L;
	private Exception encapsulatedException;

    public DataException(Exception exception) {
        encapsulatedException = exception;
    }

    public String getMessage() {
        return encapsulatedException.getMessage();
    }

    public Exception getEncapsulatedException() {
        return encapsulatedException;
    }

    public void printStackTrace() {
        printStackTrace(System.err);
    }
}
